Home / Python / Control Flow
Control Flow & Loops
Mark CompleteDecide what to do and repeat tasks with ease.
Conditions
age = 18
if age >= 18:
print("Adult")
else:
print("Minor")
Loops
for i in range(3):
print(i)
count = 0
while count < 3:
count += 1
Key takeaway: indentation is required in Python.
Ready to try it yourself?
Write a loop that prints numbers.
← Data Types
Functions →